/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo05_构造方法 {
    public static void main(String[] args) {


/*        // 调用这个类的空参构造方法来初始化对象
        Computer computer = new Computer();

        computer.setBrand("神舟");
        computer.setPrice(2899.9D);
        computer.show();*/


        Computer computer = new Computer("华硕",4899);
        computer.show();
    }
}
